package cn.edu.zut.cs;

import cn.edu.zut.cs.DAO.BookDAO;
import cn.edu.zut.cs.Impl.BookDAOImpl;

public class DaoFatory {

    public static BookDAO getBookDao() throws Exception{

        return  (BookDAO) Class.forName(MyConnection
                .getProp()
                .getProperty("BookDAO"))
                .newInstance();
    }


}
